// 导入index.js
import {
	request
} from "@/api/index.js"
// 保存历史记录接口
const saveHistroy = (data) => {
	return request("/history/science/save", "POST", data, {
		token: uni.getStorageSync("token"),
		"content-type": "application/json"
	})
}
const queryHistory = (userId) => {
	return request(`/history/science/query/${userId}`, "GET", {}, {
		token: uni.getStorageSync("token"),
		"content-type": "application/json"
	})
}
export {
	saveHistroy,
	queryHistory
}